home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / sipp / demo / makefile < prev    next >
Encoding:
Makefile  |  1992-05-03  |  2.8 KB  |  118 lines

  1. #
  2. # Makefile for the misc demos of SIPP.
  3. #
  4.  
  5. # These values are used if not overruled from the command line
  6. #CC = cc
  7. CC = gcc -traditional
  8. CFLAGS = -pipe -O2 -I../libsipp
  9. #CFLAGS = -pipe -g -I../libsipp
  10.  
  11. SHELL = /bin/sh
  12. RM = rm -f
  13.  
  14. SRCS = torustest.c conetest.c ellipsoid.c prismtest.c chain.c \
  15.     teapot.c structure.c planettest.c isy90.c strausstest.c woodtest.c
  16. PROGRAMS = torustest conetest ellipsoid prismtest chain \
  17.     teapot structure planettest isy90 strausstest woodtest
  18.  
  19.  
  20. all:
  21.     @echo "If you want to make only the pretty images, type 'make pretty'."
  22.     @echo "If you want to make only the test images, type   'make tests'."
  23.     @echo "If you want to make all images, type             'make images'."
  24.     @echo
  25.     @echo "If you want to make the programs, but not the images,"
  26.     @echo "type 'make programs'."
  27.     @echo
  28.  
  29.  
  30. # ================================================================
  31.  
  32.  
  33. programs: ../libsipp/libsipp.a $(PROGRAMS)
  34.  
  35. ../libsipp/libsipp.a:
  36.     cd ..; $(MAKE) library
  37.  
  38.  
  39. # ================================================================
  40.  
  41.  
  42. teapot: teapot.o ../libsipp/libsipp.a
  43.     $(CC) -o teapot teapot.o ../libsipp/libsipp.a -lm
  44.     
  45. chain: chain.o ../libsipp/libsipp.a
  46.     $(CC) -o chain chain.o ../libsipp/libsipp.a -lm
  47.  
  48. structure: structure.o ../libsipp/libsipp.a
  49.     $(CC) -o structure structure.o ../libsipp/libsipp.a -lm
  50.  
  51. planettest: planettest.o ../libsipp/libsipp.a
  52.     $(CC) -o planettest planettest.o ../libsipp/libsipp.a -lm
  53.  
  54. isy90: isy90.o ../libsipp/libsipp.a
  55.     $(CC) -o isy90 isy90.o ../libsipp/libsipp.a -lm
  56.  
  57. ellipsoid:    ellipsoid.o ../libsipp/libsipp.a
  58.     $(CC) -o ellipsoid ellipsoid.o ../libsipp/libsipp.a -lm
  59.  
  60. torustest: torustest.o ../libsipp/libsipp.a
  61.     $(CC) -o torustest torustest.o ../libsipp/libsipp.a -lm
  62.  
  63. conetest: conetest.o ../libsipp/libsipp.a
  64.     $(CC) -o conetest conetest.o ../libsipp/libsipp.a -lm
  65.  
  66. prismtest: prismtest.o ../libsipp/libsipp.a
  67.     $(CC) -o prismtest prismtest.o ../libsipp/libsipp.a -lm
  68.  
  69. strausstest: strausstest.o ../libsipp/libsipp.a
  70.     $(CC) -o strausstest strausstest.o ../libsipp/libsipp.a -lm
  71.  
  72. woodtest: woodtest.o ../libsipp/libsipp.a
  73.     $(CC) -o woodtest woodtest.o ../libsipp/libsipp.a -lm
  74.  
  75.  
  76. # ================================================================
  77.  
  78.  
  79. clean:
  80.     $(RM) *~ .*~ *.o $(PROGRAMS) *.p?m TAGS
  81.  
  82. tags:
  83.     etags $(SRCS)
  84.  
  85.  
  86. # ================================================================
  87.  
  88. PRETTY = chain.ppm teapot.ppm structure.ppm planet.ppm isy90.ppm
  89. TESTS = torus.ppm cone.ppm ellipsoid.ppm prism.ppm strauss.ppm wood.ppm
  90. IMAGES = $(PRETTY) $(TESTS)
  91.  
  92. images: $(IMAGES)
  93. pretty: $(PRETTY)
  94. tests:  $(TESTS)
  95.  
  96. chain.ppm: chain
  97.     chain
  98. teapot.ppm: teapot
  99.     teapot
  100. structure.ppm: structure
  101.     structure
  102. planet.ppm: planettest
  103.     planettest
  104. isy90.ppm: isy90
  105.     isy90
  106. torus.ppm: torustest
  107.     torustest
  108. cone.ppm: conetest
  109.     conetest
  110. ellipsoid.ppm: ellipsoid
  111.     ellipsoid
  112. prism.ppm: prismtest
  113.     prismtest
  114. strauss.ppm: strausstest
  115.     strausstest
  116. wood.ppm: woodtest
  117.     woodtest
  118.